Validates the host name.
More...
|
| static boolean | isValidHostName (String computerHostName) |
| | Validates the given computer hostname. More...
|
| |
| static void | validateHostName (String computerHostName) throws InvalidArgumentServiceException |
| | Validates the given computer hostname. More...
|
| |
| static boolean com.symantec.sepm.webservice.common.validation.HostNameValidator.isValidHostName |
( |
String |
computerHostName | ) |
|
|
static |
Validates the given computer hostname.
A valid hostname must be between 1 and 256 characters long and can include the domain name separator (@) only once. The hostname must also contain at least one character other than the domain name separator.
- Parameters
-
| computerHostName | the hostname to validate |
- Returns
- true if the given hostname is considered valid, false otherwise
| static void com.symantec.sepm.webservice.common.validation.HostNameValidator.validateHostName |
( |
String |
computerHostName | ) |
throws InvalidArgumentServiceException |
|
static |
Validates the given computer hostname.
A valid hostname must be between 1 and 256 characters long and can include the domain name separator (@) only once. The hostname must also contain at least one character other than the domain name separator.
- Parameters
-
| computerHostName | the hostname to validate |
- Exceptions
-
| InvalidArgumentServiceException | if the hostname is invalid |
- See also
- isValidHostName(String) isValidHostName